9949dd477292e70a62a2b1a077ced5c7a6228621,ApiDemos/app/src/main/java/com/example/mapdemo/CircleDemoActivity.java,CircleDemoActivity,onMapLongClick,#LatLng#,259
Before Change
@Override
public void onMapLongClick(LatLng point) {
// We know the center, let's place the outline at a point 3/4 along the view.
View view = ((SupportMapFragment) getSupportFragmentManager().findFragmentById(R.id.map))
.getView();
LatLng radiusLatLng = mMap.getProjection().fromScreenLocation(new Point(
view.getHeight() * 3 / 4, view.getWidth() * 3 / 4));
After Change
@Override
public void onMapLongClick(LatLng point) {
// We know the center, let's place the outline at a point 3/4 along the view.
View view = getSupportFragmentManager().findFragmentById(R.id.map).getView();
LatLng radiusLatLng = mMap.getProjection().fromScreenLocation(new Point(
view.getHeight() * 3 / 4, view.getWidth() * 3 / 4));